package practice1_100;
public class Practice9 {
    public boolean isPalindrome(int x) {
        String s=Integer.toString(x) ;
        int left=0;
        int right=s.length()-1;
        while (left<=right){
            if(s.charAt(left)!=s.charAt(right)) return false;
            left++;
            right--;
        }
        return  true;
    }

    public static void main(String[] args) {
        boolean a= new Practice9().isPalindrome(101);
        System.out.println(a);
    }
}
